﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="SZSLSystem.Web.Admin.Manage.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>用户信息管理</title>
    <link rel="stylesheet" type="text/css" href="../Images/style.css" />
    <link href="../../Css/pagination.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../Js/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../../Js/jquery.pagination.js"></script>
    <script type="text/javascript" src="../Js/function.js"></script>
    <script type="text/javascript">
    $(function() {
        //分页参数设置
        $("#Pagination").pagination(<%=pcount %>, {
        callback: pageselectCallback,
        prev_text: "« 上一页",
        next_text: "下一页 »",
        items_per_page:<%=pagesize %>,
		num_display_entries:3,
		current_page:<%=page %>,
		num_edge_entries:2,
		link_to:"?page=__id__"
       });
    });
    function pageselectCallback(page_id, jq) {
        //alert(page_id); 
    }
    $(function() {
        $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
        $(".msgtable tr").hover(
			function() {
			    $(this).addClass("tr_hover_col");
			},
			function() {
			    $(this).removeClass("tr_hover_col");
			}
		);
    });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"><a href="Add.aspx">增加系统用户</a></span><b>您当前的位置：首页 &gt; 系统管理 &gt; 系统用户列表</b></div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td width="75%" align="center">
            </td>
            <td>
            </td>
            <td width="50" align="right">
                关健字：
            </td>
            <td width="150">
                <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" ToolTip="请输入用户账号！"></asp:TextBox>
            </td>
            <td width="60" align="center">
                <asp:Button ID="btnSelect" runat="server" Text="查询" CssClass="submit" OnClick="btnSelect_Click" />
            </td>
        </tr>
    </table>
    <div style="padding-bottom: 10px;">
    </div>
    <div>
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                    <tr>
                        <th width="7%">
                            选择
                        </th>
                        <th width="12%">
                            用户帐号
                        </th>
                        <th width="12%">
                            真实姓名
                        </th>
                        <th width="15%">
                            电子邮件
                        </th>
                        <th width="12%">
                            手机号码
                        </th>
                        <th width="15%">
                            QQ号码
                        </th>
                        <th width="8%">
                            状态
                        </th>
                        <th width="8%">
                            操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <asp:CheckBox ID="cb_id" CssClass="checkall" runat="server" />
                        <asp:Label ID="lb_id" runat="server" Text='<%#Eval("ID")%>' Visible="False"></asp:Label>
                        <asp:Label ID="lb_name" runat="server" Text='<%# Eval("UserName")%>'
                            Visible="False"></asp:Label>
                    </td>
                    <td align="center">
                        <%# Eval("UserName")%>
                    </td>
                    <td align="center">
                        <%# Eval("RealName")%>
                    </td>
                    <td align="center">
                        <%# Eval("Email")%>
                    </td>
                    <td align="center">
                        <%# Eval("Mobile")%>
                    </td>
                    <td align="center">
                        <%# Eval("QQ")%>
                    </td>
                    <td align="center">
                        <%# int.Parse(Eval("Status").ToString()) == 0 ? "<img title=\"正常\" src=\"../images/correct.gif\" />" : "<img title=\"禁用\" src=\"../images/disable.gif\" />"%>
                    </td>
                    <td align="center">
                        <span><a href="Edit.aspx?ID=<%#Eval("ID") %>">编辑</a></span>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <div class="spClear">
        </div>
        <div style="line-height: 30px; height: 30px;">
            <div id="Pagination" class="right flickr">
            </div>
            <div class="left">
                <span class="btn_all" onclick="checkAll(this);">全选</span> <span class="btn_bg">
                    <asp:LinkButton ID="lbtnDel" runat="server" OnClick="lbtnDel_Click" OnClientClick="return confirm( '确定要删除这些记录吗？ ');">删除</asp:LinkButton>
                </span>&nbsp;</div>
        </div>
    </div>
    </form>
</body>
</html>
